/**
 * 严肃声明：
 * 开源版本请务必保留此注释头信息，若删除我方将保留所有法律责任追究！
 * 本软件已申请软件著作权，受国家版权局知识产权以及国家计算机软件著作权保护！
 * 可正常分享和学习源码，不得用于违法犯罪活动，违者必究！
 * Copyright (c) 2022 程序员十三 all rights reserved.
 * 版权所有，侵权必究！
 */
package com.mali.user.service.impl;

import com.mali.user.dao.MallUserMapper;
import com.mali.user.entity.MallUser;
import com.mali.user.service.NewBeeMallUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NewBeeMallUserServiceImpl implements NewBeeMallUserService {

    @Autowired
    private MallUserMapper mallUserMapper;


    @Override
    public String register(String loginName, String password) {
        return null;
    }

    @Override
    public String login(String loginName, String passwordMD5) {
        return null;
    }

    /**
     * 获取token值
     *
     * @param timeStr
     * @param userId
     * @return
     */
    private String getNewToken(String timeStr, Long userId) {
        return null;
    }



    @Override
    public MallUser getUserDetailByToken(String token) {
        return null;
    }

    @Override
    public Boolean logout(String token) {

        return true;
    }



    @Override
    public Boolean lockUsers(Long[] ids, int lockStatus) {
        if (ids.length < 1) {
            return false;
        }
        return mallUserMapper.lockUserBatch(ids, lockStatus) > 0;
    }

    public MallUser test(Long id){
        return mallUserMapper.selectByPrimaryKey(id);
    }
}
